{{template "header_en"}}
		<title>{{.ProName}} - Go 步行者</title>
	</head>

	<body id="body" style="font-family: Microsoft Yahei; font-size: 13px;">
		<span id="lang" class="hide">{{.Lang}}</span>
		{{template "navbar_zh"}}
		<div class="container" style="width: 1000px;">
			<div id="main_content" class="row">
				<div style="margin-left: 20px;">
	                {{template "alert_zh" .}}
					{{if .IsRefresh}}
					<div class="alert alert-success">
						<button type="button" class="close" data-dismiss="alert">&times;</button>
						<strong>  恭喜您！</strong> 
						您已经成功于 <i>{{.UtcTime}}</i> 刷新本项目文档！
					</div>
					{{end}}

					{{if .IsGoRepo}}
					<div class="alert alert-info">
						<button type="button" class="close" data-dismiss="alert">&times;</button>
						<strong>友情提示：</strong> 
						Asta谢 在 github 上发起了 <strong>Go </strong> 标准库函数 <span class="label label-info">示例</span> 项目，每个函数都有相应操作示例，您绝对不容错过！点击这里访问：<a target="_blank" href="https://github.com/astaxie/gopkg/tree/master/{{.ImportPath}}" class="label label-success">gopkg</a>.
					</div>
					{{else}}
					{{template "labelmodal_zh" .}}
					{{end}}

					{{template "exammodal_zh" .}}

					<div id="sidebar" class="span3 hide" style="margin-left: -220px; margin-top: 20px;">
						<ul class="nav nav-tabs nav-stacked affix bs-docs-sidenav">
							<li>
								<a href="#"><i class="icon-chevron-right"></i>回到顶部</a>
							</li>
							
							{{if .IsHasExports}}
							<li>
								<a href="#_index"><i class="icon-chevron-right"></i>索引</a>
							</li>
							{{end}}
							
							{{if .IsHasConst}}
							<li>
								<a href="#_constants"><i class="icon-chevron-right"></i>常量</a>
							</li>
							{{end}}

							{{if .IsHasVar}}
							<li>
								<a href="#_variables"><i class="icon-chevron-right"></i>变量</a>
							</li>
							{{end}}
							
							{{if .IsHasExams}}
							<li>
								<a href="#_exams"><i class="icon-chevron-right"></i>示例</a>
							</li>
							{{end}}

							{{if .IsCmd}}
							{{else}}
							<li>
								<a href="#example_modal" data-toggle="modal"><i class="icon-chevron-right"></i>增加示例</a>
							</li>
							{{end}}
							
							{{if .IsHasSubdirs}}
							<li>
								<a href="#_subdirs"><i class="icon-chevron-right"></i>目录</a>
							</li>
							{{end}}
							
							<li>
								<a href="#_bottom"><i class="icon-chevron-right"></i>底部</a>
							</li>
							
							{{if .IsHasExports}}
							<li>
								<a href="#search_exports" data-toggle="modal"><i class="icon-chevron-right"></i>搜索导出对象</a>
							</li>
							{{end}}
							
							{{if .IsGoRepo}}
							{{else}}
							<li>
								<a href="#label_modal" data-toggle="modal"><i class="icon-chevron-right"></i>项目标签</a>
							</li>
							{{end}}
						</ul>
					</div>

					<div id="markdown" class="markdown">
						<div class="flat-well well-small" style="background-color: #f5f5f5">
							<a title="在 {{.VCS}} 上查看该项目" target="_blank" href="http://{{.ProPath}}" class="label label-info">{{.VCS}}</a> 

							<a target="_blank" href="http://{{.ProPath}}">
								<strong>{{.ProName}}:</strong>
							</a> 

							<a href="/{{.ProDocPath}}">{{.ProDocPath}}</a><span class="muted">/{{.ProName}}</span>
							<span class="pull-right">
								<span><span >您是本页面的第 <b>{{.Views}}</b> 位访问者。</span>
								<span class="muted"> | </span>
								<a href="#_index">索引</a>

								{{if .IsHasFiles}}
								<span class="muted"> | </span>
								<a href="#_files">文件</a>
								{{end}}

								{{if .IsHasSubdirs}}
								<span class="muted"> | </span>
								<a href="#_subdirs">目录</a>
								{{end}}
							</span>
						</div>

						<h2>
							{{if .IsCmd}}
							命令行
							{{else}}
							项目
							{{end}} 

							{{.ProName}} 

							<span class="label label-inverse">排名值：{{.Rank}}</span> 

							{{range .Labels}}
							<a target="_blank" href="/labels#{{.}}" class="label label-inverse">{{.}}</a> 
							{{end}}
						</h2>

						{{if .IsCmd}}
						{{else}}
							{{if .IsHasFiles}}
						<div style="min-height: 25px;">
							<code>import "{{.ImportPath}}"</code>

							{{if .IsHasTags}}
							<strong>项目 Tags：</strong>
							<div class="btn-group">
							    <button class="btn dropdown-toggle" data-toggle="dropdown">{{.CurTag}} <span class="caret"></span></button>
							    <ul class="dropdown-menu">
								{{$importPath := .ImportPath}}
							    	{{range .Tags}}
							    	<li><a href="/{{$importPath}}?tag={{.}}">{{.}}</a></li>
							    	{{end}}
							    </ul>
						    </div>
							{{end}}
					    </div>
					    {{end}}
						{{end}}

						{{if .IsHasReadme}}
						<div id="readme" style='display:none; padding: 3px; border:1px solid #4F4F4F;'>{{str2html .PkgDoc}}</div>
					    {{end}}
					    
						<div id="markdown" class="markdown">
							{{range .DocJS}}
							<script type="text/javascript" src="{{.}}"></script>
							{{end}}
						</div>
						
						<p>
							{{if .IsHasFiles}}
							项目 <b>{{.ProName}}</b> 共计导入 
							{{if .IsHasImports}}
							<a href="/search?q=imports&pkgs={{.ImportPkgs}}">{{.ImportPkgNum}} 个外部包</a>
							{{else}}
							0 个外部包
							{{end}}

							{{if .IsImported}}
							，并且有 <a href="/search?q=imported&pkgs={{.ImportPid}}">{{.ImportedNum}} 个包</a> 引用了该项目
							{{end}}。 
							{{end}}

							Go 步行者在 <i>{{.TimeSince}}</i> 生成了此页面。 <a class="btn" href="/refresh?q={{.ImportPath}}">刷新文档</a>
						</p>
					</div>
				</div>
			</div>
		</div>
		{{template "footer_zh" .}}
	</body>
</html>

{{define "example_zh"}}
<div class="accordion">
	<div class="accordion-group">
		<div class="accordion-heading">
			<a id="_ex_btn_{{.Name}}" class="accordion-toggle collapsed" data-toggle="collapse" href="#_ex_{{.Name}}">示例({{.Name}})</a>
		</div>

		<div id="_ex_{{.Name}}" class="accordion-body collapse">
			<div class="accordion-inner">
			<p>代码：</p>
			<pre class="pre-x-scrollable">{{str2html .Code}}</pre>
			{{if .IsHasOutput}}<p>输出：</p><pre class="pre-x-scrollable">{{.Output}}</pre>{{end}}
			</div>
		</div>
	</div>
</div>
{{end}}